package com.yifeng.repo.base.security.auth.constant;

/**
 * Created by daibing on 2023/8/24.
 */
public class SecurityConstant {

    /**
     * 请求token
     */
    public static final String TOKEN = "token";

    /**
     * 请求token的业务自定义字段名称
     */
    public static final String TOKEN_CUSTOM_NAME = "security.token.custom.name";

    /**
     * 用户的业务自定义字段名称
     */
    public static final String USER_CUSTOM_NAME = "security.user.custom.name";

    /**
     * 请求发起方的appId
     */
    public static final String REQ_APP_ID = "x-app-id";

    /**
     * 请求归属鉴权类型：2B, 2C, 2S
     */
    public static final String SECURITY_TYPE = "x-security-type";

    /**
     * 配置token
     */
    public static final String AUTH_TOKEN_HEADER_KEY = "X-SC-AccessToken";

}
